"""

"""
import traceback

try:
    print("step1")
    num = 1 / 0
except:
    traceback.print_exc()


#coding=utf-8
import traceback
try:
    print("step1")
    num = 1/0
except:
    with open("d:/a.log","a") as f: # a代表append
        traceback.print_exc(file=f)
